import { IContext, IParam } from '@/core';
import { PropType } from 'vue';
declare type requestMode = 'get' | 'post' | 'delete' | 'put';
export const orgSelectProps = {
	name: {
		type: String,
	},
	disabled: {
		type: Boolean,
		default: false,
	},
	readonly: {
		type: Boolean,
		default: false,
	},
	filter: {
		type: String,
		default: 'srforgid',
	},
	//查询单位路径
	url: {
		type: String,
		default: '',
	},
	multiple: {
		type: Boolean,
		default: false,
	},
	requestMode: {
		type: String as PropType<requestMode>,
		default: 'get',
	},
	//填充对象
	fillMap: {
		type: Object as PropType<IParam>,
		default: {},
	},
	codeListTag: {
		type: String,
	},
	codeListType: {
		type: String,
	},
	data: {
		type: Object,
		default: {},
	},
	context: {
		type: Object as PropType<IContext>,
	},
	value: {
		type: String,
		default: '',
	},
	//显示选择框
	treeCheckable: {
		type: Boolean,
		default: false,
	},
};
